package com.spark.lola.logistics.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.common.constant.CommonConstant;
import com.spark.lola.support.mybatis.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author: Zhi-peng wang
 * @date: 2020/04/26 15:53
 * 货运单常用地址信息
 **/
@Getter
@Setter
@ApiModel(value = "LocationInfo", description = "货运单常用地址信息")
@TableName("logistics_location_info")
public class LocationInfo extends BaseModel {

    @ApiModelProperty(name = "no", value = "编码")
    private String no;

    @ApiModelProperty(name = "name", value = "名称")
    private String name;

    @ApiModelProperty(name = "areaIds", value = "省市区Ids")
    private String areaIds;

    @ApiModelProperty(name = "area", value = "省市区")
    private String area;

    @ApiModelProperty(name = "address", value = "详细地址")
    private String address;

    @ApiModelProperty(name = "locationType", value = "类型", notes = "0-纸厂，1-其他")
    private Integer locationType;

    @ApiModelProperty(name = "empId", value = "员工id", notes = "当location_type=0时必须绑定员工id")
    private Long empId;

    @ApiModelProperty(name = "purchaseId", value = "财务id")
    private Long purchaseId;

    @ApiModelProperty(name = "cashierId", value = "出纳id")
    private Long cashierId;

    @ApiModelProperty(name = "leaderId", value = "业务主管")
    private Long leaderId;

    @ApiModelProperty(name = "linkman", value = "联系人")
    private String linkman;

    @ApiModelProperty(name = "mobile", value = "手机号码")
    private String mobile;

    @ApiModelProperty(name = "used", value = "状态")
    private String used = CommonConstant.Y;

    @ApiModelProperty(name = "createTime", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(name = "updateTime", value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
